{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcss.css">
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li><a href="{php echo $this->createWebUrl('level')}">等级管理</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('addlevel')}">添加加盟等级</a></li>
</ul>
<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                内容编辑 
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">等级名称</label>
                    <div class="col-sm-9">
                        <input type="text" name="name" class="form-control" value="{$info['name']}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">价格</label>
                    <div class="col-sm-9">
                        <input type="text" onkeyup="value=value.replace(/[^\d.]/g,'')"  name="money" class="form-control" value="{$info['money']}" />
                         <div class="help-block">*价格必须按照低等级到高等级阶梯设置</div>
                    </div>

                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">级别</label>
                    <div class="col-sm-9">
                        <input type="number" name="num" class="form-control" value="{$info['num']}" />
                        <div class="help-block">*级别越高等级越高</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">赠送限时秒杀置顶次数</label>
                    <div class="col-sm-9">
                        <input type="number" name="spike" class="form-control" value="{$info['spike']}" />
                        <div class="help-block">*赠送限时秒杀置顶次数</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">赠送商品不置顶，免费发布次数</label>
                    <div class="col-sm-9">
                        <input type="number" name="goods_not_top" class="form-control" value="{$info['goods_not_top']}" />
                        <div class="help-block">*赠送商品不置顶，免费发布次数</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">赠送商品置顶，免费发布次数</label>
                    <div class="col-sm-9">
                        <input type="number" name="goods_top" class="form-control" value="{$info['goods_top']}" />
                        <div class="help-block">*赠送商品置顶，免费发布次数</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">赠送发帖次数，免费发布次数</label>
                    <div class="col-sm-9">
                        <input type="number" name="fatie" class="form-control" value="{$info['fatie']}" />
                        <div class="help-block">*赠送发帖次数，免费发布次数</div>
                    </div>
                </div>
                <!-- <div class="form-group">
                  <label class="col-xs-12 col-sm-3 col-md-2 control-label">一级佣金</label>
                  <div class="col-sm-9">
                        <p class="input-group">
                             <input type="number"  name="commission" value="{$info['commission']}" id="points" class="form-control" />
                             <span class="input-group-addon">%</span>
                        </p>
                        <div class="help-block">*一级下线消费时,加盟商可获得佣金比例</div>
                  </div>
                </div>  -->
                <!-- <div class="form-group">
                  <label class="col-xs-12 col-sm-3 col-md-2 control-label">二级佣金</label>
                  <div class="col-sm-9">
                        <p class="input-group">
                             <input type="number"  name="commission2" value="{$info['commission2']}" id="points" class="form-control" />
                             <span class="input-group-addon">%</span>
                        </p>
                        <div class="help-block">*二级下线消费时,加盟商可获得佣金比例</div>
                  </div>
                </div> -->
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">直推付费信息收益</label>
                    <div class="col-sm-9">
                          <p class="input-group">
                               <input type="number"  name="fufei_shouyi" value="{$info['fufei_shouyi']}" id="points" class="form-control" />
                               <span class="input-group-addon">%</span>
                          </p>
                          <div class="help-block">*粉丝下线付费信息时,加盟商可获得收益比例</div>
                    </div>
                  </div> 
                  <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">直推商品让利收益</label>
                    <div class="col-sm-9">
                          <p class="input-group">
                               <input type="number"  name="shop_shouyi" value="{$info['shop_shouyi']}" id="points" class="form-control" />
                               <span class="input-group-addon">%</span>
                          </p>
                          <div class="help-block">*粉丝下线购买商品时,加盟商可获得收益比例</div>
                    </div>
                  </div> 
                  <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">直推代理收益</label>
                    <div class="col-sm-9">
                          <p class="input-group">
                               <input type="number"  name="daili_shouyi" value="{$info['daili_shouyi']}" id="points" class="form-control" />
                               <span class="input-group-addon">%</span>
                          </p>
                          <div class="help-block">*粉丝下线成为代理时,加盟商可获得收益比例</div>
                    </div>
                  </div> 
            </div>
        </div>
        <div class="form-group">
            <input type="submit" name="submit" value="提交" class="btn col-lg-3" style="color: white;background-color: #44ABF7;"/>
            <input type="hidden" name="token" value="{$_W['token']}" />
            <input type="hidden" name="id" value="{$info['id']}" />
        </div>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        // $("#frame-8").addClass("in");
        $("#frame-19").show();
        $("#yframe-19").addClass("wyactive");
    })
</script>